function log(msg) {
    const logBox = document.getElementById('logBox')
    const logItem = document.createElement('li')
    logItem.textContent = arguments[0]
    logBox.appendChild(logItem)
    console.log.apply(console, arguments)
}
window.log = log;